home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / msgswap.arc / PROCMAIL.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-06-08  |  1.2 KB  |  58 lines

  1. @echo off
  2. :
  3. :     This batch file is used to process all incoming mail in
  4. :     a Binkley/Qmail setup.  To use it, just go to the
  5. :     location in your batch file where you process incoming
  6. :     mail, delete all of your other areafix/qmail/passout
  7. :     commands, then add
  8. :
  9. :     for Dos 3.2 or lowec:
  10. :
  11. :         command/c procmail
  12. :
  13. :     for Dos 3.3 or higher
  14. :
  15. :         call procmail
  16. :
  17.  
  18. c:
  19. cd\bink
  20.   qm toss -ac:\bink\areas.bbs
  21.  
  22. cd\pcb
  23.   msgswap /g:c:\pcb\msgswap.cfg /i /o /t
  24.  
  25.   if errorlevel 3 goto index_error
  26.   if errorlevel 2 goto error
  27.   if errorlevel 1 goto packer
  28.   if errorlevel 0 goto end
  29.  
  30. :index_error
  31.   rem errorlevel 3 - msgs.ndx may be missing or index file size
  32.   rem                needs to be increased in PCBsetup and run PCBpack
  33.   c:
  34.   cd\pcb
  35.   pcbpack /area:0-11 /fast /kb /nc /uc
  36.   goto end
  37.  
  38. :Error
  39.   rem errorlevel 2 - a DOS file error has occured
  40.   echo ERROR! ERROR! ERROR!
  41.   goto End
  42.  
  43. :Packer
  44.   rem errorlevel 1 - mail was processed
  45.   rem you could run PCBpack if you wanted to
  46.   rem you really don't HAVE to do anything...
  47.   c:
  48.   cd\pcb
  49.   pcbpack /area:0-11 /fast /kb /nc /uc
  50.   goto end
  51.  
  52. :End
  53.   rem errorlevel 0 - no mail to process
  54.  
  55.   c:
  56.   cd\bink
  57.  
  58.